package com.example.boot3new.druid;

import com.alibaba.druid.pool.DruidDataSource;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;

import org.springframework.stereotype.Component;

/**
 * @author lhq
 * @date 2023/05/30 21:55
 */
//@ConfigurationProperties("spring.datasource.druid")
//@Component
public class DruidDataSourceWrapper extends DruidDataSource implements InitializingBean {

//    @Autowired
//    private HikariDataSourceProperties hikariDataSourceProperties;

    @Override
    public void afterPropertiesSet() throws Exception {
//        System.out.println("basicProperties = " + basicProperties);
    }
}
